/*****************************************************************************/
/**
 *  @file   Frustum.h
 *  @author Naohisa Sakamoto
 */
/*----------------------------------------------------------------------------
 *
 *  Copyright (c) Visualization Laboratory, Kyoto University.
 *  All rights reserved.
 *  See http://www.viz.media.kyoto-u.ac.jp/kvs/copyright/ for details.
 *
 *  $Id$
 */
/*****************************************************************************/
#pragma once

#include <kvs/Vector3>
#include <kvs/Vector4>

namespace kvs { class Scene; }


class Frustum
{
private:

    kvs::Vec4 m_planes[6]; ///< planes of the view frustum (left, right, bottom, top, far, near)

public:

    Frustum( kvs::Scene* scene );

    bool include( const kvs::Vec3& min, const kvs::Vec3& max ) const;
};
